<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<html:html>
<head>
	<title></title>
</head>
<body>
    <html:form action="/submitUpdateRequest.do">
    		<h3>Graduate information details:</h3>
    		<table>
    			<tr>
    				<td>Full Name:</td><td><html:text property="fullName"/></td>
    				<td><html:errors property="fullName"/></td>    				
    			</tr>    			
    			<tr>
    				<td>Intake:</td><td><html:text property="intake"/></td>
    				<td><html:errors property="intake"/></td>
    			</tr>    			
    			<tr>
    				<td>Branch:</td>
    				<td>
    					<html:select property="branch" >    
    						<html:option value="-1">Select Branch</html:option>
    						<html:optionsCollection name="AddITIianFormBean" property="branches" label="name" value="BId" />						
    					</html:select>
    					    				
    					
    				</td>
    				<td><html:errors property="branch"/></td>
    			</tr>
    			<tr>
    				<td>Department:</td>
    				<td>
    					<html:select property="department" >    					    
    						<html:option value="-1">Select Department</html:option>
    						<html:optionsCollection name="AddITIianFormBean" property="departments" label="DName" value="DId" />	
    					</html:select>
    					
    				</td>
    				<td><html:errors property="department"/></td>
    			</tr>  
    			<tr>
    				<td>University:</td>
    				<td>
    					<html:select property="university" >    					    
    						<html:option value="-1">Select University</html:option>
    						<html:optionsCollection name="AddITIianFormBean" property="universities" label="UName" value="UId" />	
    					</html:select>
    					
    				</td>
    				<td><html:errors property="university"/></td>
    			</tr>
    			<tr>
    				<td>Faculty:</td>
    				<td>
    					<html:select property="faculty" >    					    
    						<html:option value="-1">Select Faculty</html:option>
    						<html:optionsCollection name="AddITIianFormBean" property="faculties" label="FName" value="FId" />	
    					</html:select>    					
    				</td>
    				<td><html:errors property="faculty"/></td>
    			</tr>      			
    		</table><html:reset>
    			
    		</html:reset>
			<html:submit value="Send request to update">
    			
    		</html:submit>
    		  
    	</html:form>
</body>
</html:html>
